package com.iweb.newa202104.Mapper;

import com.iweb.newa202104.dto.ResourceOutputDTO;
import com.iweb.newa202104.entity.CategoryEntity;
import com.iweb.newa202104.entity.ResourceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@Mapper
public interface ResourceMapper {
    /**
     * @Description 按分类获取资源
     * @author Tansty
     * @date 2021/5/12 20:10
     * @return com.iweb.newa202104.entity.ResourceEntity[]
     */

    ResourceOutputDTO[] getResourceByCategory(ResourceEntity resourceEntity);
}
